from django.contrib import admin
from django.urls import path, re_path, include
from user import views

from rest_framework.routers import SimpleRouter

from . import views

router = SimpleRouter()
router.register('category', views.CategoryView, basename='CategoryView')
router.register('free', views.CourseView, basename='CourseView')
router.register('chapters', views.CourseChapterView, basename='CourseChapterView')
router.register('search', views.SearchCourseView, basename='SearchCourseView')

urlpatterns = [

]

urlpatterns += router.urls
